package cc.rengu.redp.bizimpl.csmc.vo;
import cc.rengu.redp.bizimpl.csmc.domain.OrgCharge;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
@Data
public class OrgChargeVO implements Serializable {

    @ApiModelProperty(value = "法人行号")
    private String instId;

    @ApiModelProperty(value = "批次日期")
    private String batchDate;

    @ApiModelProperty(value = "收单机构号")
        private String acqInstCode;

    @ApiModelProperty(value = "手续费收益")
    private BigDecimal actFeeIncome;

    /*用于前端显示*/
    private String feeIncome;

    @ApiModelProperty(value = "银联手续费")
    private BigDecimal actCupsFee;

    /*用于前端显示*/
    private String cupsFee;

    public String getInstId() {
        return instId;
    }

    public void setInstId(String instId) {
        this.instId = instId;
    }

    public String getBatchDate() {
        return batchDate;
    }

    public void setBatchDate(String batchDate) {
        this.batchDate = batchDate;
    }

    public String getAcqInstCode() {
        return acqInstCode;
    }

    public void setAcqInstCode(String acqInstCode) {
        this.acqInstCode = acqInstCode;
    }

    public BigDecimal getActFeeIncome() {
        return actFeeIncome;
    }

    /*jpa实际使用这个setter注入结果*/
    public void setActFeeIncome(double actFeeIncome) {
        this.actFeeIncome = BigDecimal.valueOf(actFeeIncome).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.feeIncome = this.actFeeIncome.toString();
    }

    public BigDecimal getActCupsFee() {
        return actCupsFee;
    }

    /*jpa实际使用这个setter注入结果*/
    public void setActCupsFee(double actCupsFee) {
        this.actCupsFee = BigDecimal.valueOf(actCupsFee).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.cupsFee = this.actCupsFee.toString();
    }

    public String getFeeIncome() {
        return feeIncome;
    }

    public String getCupsFee() {
        return cupsFee;
    }
}

